#!/usr/bin/env python
#-*- coding:utf-8 -*-

import time
import sys
import subprocess

def read(word):
# 	if '' in word:
# 		words = word.split()
# 		for word in words:
# 			subprocess.Popen(["aplay","/usr/share/WyabdcRealPeopleTTS/%s/%s.wav" % (word[0], word)])
# 			time.sleep(0.5)
# 	else:
    word = word.lower()                 # 如单词：English,在语音库中只存为：a/english.wav
    subprocess.Popen(["aplay","/usr/share/WyabdcRealPeopleTTS/%s/%s.wav" % (word[0], word)])

def play(type):
	subprocess.Popen(["aplay","sound/%s.wav" % type])

if __name__ == "__main__":
	read(sys.argv[1])
